Put both .rb files into Plugin folder of SU.

To switch the plugin on select Tools->Dimentions Tool->Auto Display Dimentions.
To switch it off do the same operations.

It is the best  to set one hot key for on/off the plugin (Auto Display Dimentions) and one key for (Get Dimentions) wich will show the last remembered dimention in any time.